﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PocketEngine.Maths;

namespace PocketEngine.Cameras
{
    public class pCam
    {
        public static pCam Active;
        public void Activate()
        {
            Active = this;
        }
        public float ViewX
        {
            get
            {
                return mViewX;
            }
            set
            {
                mViewX = value;
            }
        }
        private float mViewX = 0;
        public float ViewY
        {
            get
            {
                return mViewY;
            }
            set
            {
                mViewY = value;
            }
        }
        private float mViewY = 0;
        public float ViewRotation
        {
            get
            {
                return mRot;
            }
            set
            {
                mRot = value;
            }
        }
        private float mRot = 0;

        public float ViewScale
        {
            get
            {
                return mViewScale;
            }
            set
            {
                mViewScale = value;
            }
        }
        public float mViewScale = 1;

        public void Translate(pVec2 val)
        {
            mViewX += val.X;
            mViewY += val.Y;
        }
        public void Turn(float val)
        {
            mRot += val;
        }
        

    }
}
